package com.team.recruitment_management_system.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * {@code @Author}: lzy.
 * {@code @Date}: Created in 2023/3/18
 * {@code @Description}:线程池
 */
@Configuration
public class ThreadPoolConfig {
    @Bean
    public ExecutorService threadPool(){
        return Executors.newFixedThreadPool(20);
    }
}
